<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SHOW DETAILS</title>
<meta name="keywords" content="Free CSS Template, Website Templates, Music Websites" />
<meta name="description" content="Free CSS Template for Music Websites" />
<link href="${pageContext.request.contextPath}/resources/css/templatemo_style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body,td,th {
	font-size: 14px;
}
</style>
</head>
<body>

<div id="templatemo_container">
<div id="templatemo_header">
    	<div id="templatemo_title">
            <div id="templatemo_sitetitle">Online<span>Movies</span></div>
        </div>
        <spring:url value="/logout" var="logout_url" htmlEscape="true" />
         <div id="templatemo_login" align="right">
        	Welcome <label>${username}</label> | <a href="${logout_url}">Log Out</a>
        </div>
    </div>
    
    <div id="templatemo_banner">
       	<div id="templatemo_banner_text">
            <div id="banner_title">Welcome To Online Movie Ticket Booking</div>
            <p>
            This is a site for booking your ticket online
          </p>
            
    	</div>
	</div>
	   <spring:url value="/registration" var="registration_url" htmlEscape="true" />
     <spring:url value="/" var="index_url" htmlEscape="true" />
      <spring:url value="/selectmovie" var="booking_url" htmlEscape="true" />
      <spring:url value="/hall" var="hall_url" htmlEscape="true" />
      <spring:url value="/movie" var="movie_url" htmlEscape="true" />
       <spring:url value="/show" var="show_url" htmlEscape="true" />
    
    <div id="templatemo_menu">
     	<ul>
			<li><a href="${index_url}" >Main Page</a></li>
			<li><a href="${registration_url}">Registration</a></li>
            <li><a href="${booking_url}" >Booking Details</a></li>
            <li><a href="${hall_url}">Show Details</a></li>  
            <li><a href="${show_url}" class="current">Show Times</a></li>      
            <li><a href="subpage.html" class="lastmenu">Contact</a></li>        
        </ul>  
    </div>
    
<form:form method="post" modelAttribute="show" action="show/insert">

  
   				<div class="input_filld" align="center" style="width:500px">
				<label>showfrom :</label> <input type="text" name="showfrom" id="showfrom"
						value="" />
						</div>
				
				<div class="input_filld" align="center" style="width:500px">
					<label>showto :</label> <input type="text" name="showto" id="showto"
						value="" />
				</div>
				
				<div class="input_filld" align="center" style="width:500px">
					<label>showtime :</label> <input type="text" name="showtime" id="showtime"
						value="" />
				</div>
				<div class="input_filld" align="center" style="width:500px">
					<label>noofseat :</label> <input type="text" name="noofseat" id="noofseat"
						value="" />
				</div>
				<div class="input_filld" align="center" style="width:500px">
					<label>price :</label> <input type="text" name="price" id="price"
						value="" />
				</div>
				
				<div class="input_filld" align="center" style="width:500px">
				<label>select movie :</label> 
					<form:select path="movieDetails.id" id="moviedet">
					<form:option value="" label="Select Movie"/>
					<form:options items="${movieList}" itemLabel="moviename" itemValue="id"/>
					</form:select>
				</div>
				

     
    <p><input class="button" type="submit" name="submit" value="For view and insert" /></p>
     
    </form:form>
    
    
        <h2>List of Movies and their details</h2>
     
    <table align="center" cellspacing="0" border="1">
        <tr>
            <th>showfrom</th>
            <th>showto</th>
            <th>showtime</th>
            <th>noofseat</th>
            <th>price</th>
            
        
            
            
        </tr>
         
        <c:forEach items="${shows}" var="showVar" varStatus="status">
         
        <tr>
            <td>${showVar.showfrom}</td>
            <td>${showVar.showto}</td>
            <td>${showVar.showtime}</td>
                        <td>${showVar.noofseat}</td>
            <td>${showVar.price}</td>
        </tr>
         
        </c:forEach>
         
    </table>
      <div id="templatemo_footer">
        <a href="#">Home</a> | <a href="#">Videos</a> | <a href="#">Audios</a> | <a href="#">Albums</a> | <a href="#">Artists</a> | <a href="#">Contact</a><br />
       
	</div>
    </div>
</body>
</html>